package com.wonder.app.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wonder.app.domain.QingSyncOrder;
import com.wonder.app.domain.QingSyncOrderDetail;
import com.wonder.app.domain.SyncOrder;
import com.wonder.app.domain.SyncOrderDetail;
import com.wonder.app.request.QingSyncOrderRequest;
import com.wonder.app.request.SyncOrderRequest;

import java.util.List;
import java.util.Map;

public interface QingSyncOrderService extends IService<QingSyncOrder> {
    /**
     * 同步履历列表
     * @param qingSyncOrderRequest
     * @param page
     * @return
     */
    public IPage<QingSyncOrder> selectList(QingSyncOrderRequest qingSyncOrderRequest, Page<QingSyncOrder> page);

    /**
     * 订单同步开始
     * @param name
     * @param userId
     * @param type
     * @return
     */
    String startQingSyncOrder(String name, Long userId,String type);
    /**
     * 订单同步结束
     * @param orderDetailList
     * @param tbbillNo
     * @param
     * @return
     */
    Map<String,Object> endQingSyncOrder(List<QingSyncOrderDetail> orderDetailList, String tbbillNo);

    /**
     * 导出订单同步履历
     * @param map
     * @return
     */
    Map<String, Object> dumpdata(Map<String, Object> map);
}
